//
//  XMLReader.h
//  HanBlog
//
//  Created by zou leeging on 10-10-10.
//  Copyright 2010 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Blog.h"
#import "BlogConnection.h"

@protocol XMLReaderDelegate;

@interface XMLReader : NSObject <NSXMLParserDelegate,BlogConnectionDelegate>{

	id<XMLReaderDelegate> delegate;
	NSMutableArray *blogArray;
	Blog *m_blog;
	NSMutableString *currentString;
}

@property (nonatomic, assign)id<XMLReaderDelegate> delegate;

-(void)getBlogs;

@end


//--------------

@protocol XMLReaderDelegate

-(void)XMLReader:(XMLReader *)reader didGetBlogs:(NSArray *)blogs;

@end